package com.xiang.entity;

import java.util.List;
import com.xiang.constant.Url;
import com.xiang.utils.Sign;

/**
 * 获取支持团购搜索的最新城市下属区域列表
 */
import cn.edu.fzxy.zxy.niceday.utils.RequestParameter;

public class GetRegionsEntity extends BaseEntity {
	private String city;

	public GetRegionsEntity(String _city) {
		super.initParameterList();
		this.city = _city;
	}

	@Override
	public String getUrl() {
		this.url = Url.get_regions;
		return this.url;
	}

	@Override
	public String getSendData() {
		return this.sendData;
	}

	@Override
	public List<RequestParameter> getParameterList() {
		parameterList.add(new RequestParameter("city", city));
		paramMap.put("city", city);
		parameterList.add(new RequestParameter("sign", getSign()));
		return parameterList;
	}

	@Override
	public String getSign() {
		sign = Sign.sign(appKey, secret, paramMap);
		System.out.println("##########sign: " + sign);
		return sign;
	}

}
